from django.urls import path
from rest_framework.routers import SimpleRouter

from .views import start_algorithm_service
from  .api import run_algorithm,create_api,get_api,update_api,delete_api,get_graph_info,get_configurable_nodes
router = SimpleRouter()

urlpatterns = [
    path('start_algorithm_service/', start_algorithm_service),
    path('run_algorithm/<path:api_url>/', run_algorithm,name='run_algorithm'),
    path('create_api/', create_api, name='create_api'),
    path('get_algorithm/<int:algorithm_id>/', get_api, name='get_api'),
    path('update_api/<int:algorithm_id>/', update_api, name='update_api'),
    path('delete_api/<int:algorithm_id>/', delete_api, name='delete_api'),
    path('get_graph_info/<int:algorithm_id>/', get_graph_info, name='get_graph_info'),
    path('get_configurable_nodes/<int:algorithm_id>/', get_configurable_nodes, name='get_configurable_nodes'),
]
